<?php $this->_extends('_layouts/bocib_layout'); ?>

<?php $this->_block('content');?>
<div id="content">
    <h2>更新课件资料</h2>
    <p class="jump"><a href="<?=url('bofaculty/addtdoc');?>">上传新课件 >></a></p>
    <form action="<?=url('bofaculty/edittdoc');?>" method="post" enctype="multipart/form-data">
        <div>
            <?php $tdoc = Tdocs::find('tdoc_id = ?', $_GET['tdoc_id'])->query();?>
            <select name="course_id">
                <option name="course_id" value="<?=Courses::find('course_id = ?', $tdoc->course_id)->query()->course;?>" selected="selected" >当前为：<?=Courses::find('course_id = ?', $tdoc->course_id)->query()->course;?></option>
                <?php foreach($ycourses as $course) { ?>
                <option name="course_id" value="<?=$course->course_id;?>"><?=$course->course;?></option>
                <?php } ?>
            </select>
            <input type="hidden" name="tdoc_id" value="<?=$tdoc->tdoc_id;?>" />
            <input type="submit" value="提交" />
        </div>
    </form>
</div>

<?php $this->_endblock('content');?>